
#pragma once

#include "ICond.h"

class CondG : public ICond
{
public:
	CondG();
	~CondG();
//////////////////////////// ICond //////////////////////////////////////////////
	virtual int8_t getCondType() { return (int8_t)EDupCondType::EDupCondType_G; };
	virtual bool init(IDuplicate *pDuplicate, const VEC_INT32 *pCond, const string &strSubCond);
	virtual void uninit();
	virtual void condUpdate();
	virtual bool finishCond();
	virtual int32_t limitSec();
	virtual int32_t result();
	virtual void setContiTime(int32_t sec);
	virtual int32_t winCamp(){ return m_winCamp; };
private:
	int32_t checkCond();
private:
	IDuplicate *m_pDuplicate;
	const VEC_INT32 *m_pVecCond;
	int32_t m_result;
	bool m_finish;
	int32_t m_contiSec; //对抗时间
	int32_t m_winCamp;
};